package com.issoft.studentresitor.mapper;

import com.issoft.studentresitor.domain.pojo.Clazz;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.issoft.studentresitor.domain.query.ClazzQuery;
import com.issoft.studentresitor.domain.vo.QueryClazzVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author GJH
 * @since 2025-09-14
 */
public interface ClazzMapper extends BaseMapper<Clazz> {
    /**
     * 分页查询
     * @param clazzQuery
     * @return
     */
    List<QueryClazzVo> queryClazzPage(ClazzQuery clazzQuery);
    /**
     * 统计空教室
     * @return
     */
    Long countEmptyClass();

    Clazz getByIdQuerTeaacher(Integer userId);
}
